import { readonly } from 'vue'

export default {
  // $is_ios(){
  //   return uni.getSystemInfoSync().platform === 'ios'
  // },
  // $is_android(){
  //   return uni.getSystemInfoSync().platform === 'android'
  // },
  $platform() {
    const current: string = uni.getSystemInfoSync().platform
    return readonly({
      current,
      is_ios: current === 'ios',
      is_android: current === 'android'
    })
  }
}
